// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import $ from 'jquery'
import VRouter from 'vue-router'
import VueResource from 'vue-resource'

import './css/bootstrap.css'
import './fonts/font-awesome.min.css'
import './css/public.css'


import index from  './index'
/*首页*/
import layout from './components/layout'
/*五大用处*/
import UsePage from './components/UsePage'
import onePage from './components/FiveUse/onePage'
import twoPage from './components/FiveUse/twoPage'
import threePage from './components/FiveUse/threePage'
import fourPage from './components/FiveUse/fourPage'
import fivePage from './components/FiveUse/fivePage'
/*微信售票机*/
import weChatTicket from './components/WeChatTicket/weChatTicket'
/*关于我们*/
import AboutUs from './components/About/About'
/*公告*/
import notice from './components/Notice/notice'
import './js/public.js'
import VueAwesomeSwiper from 'vue-awesome-swiper'

Vue.config.productionTip = false

Vue.use(VueAwesomeSwiper)
Vue.use(VRouter)
Vue.use(VueResource)

let router = new  VRouter({
	mode:'history',
	routes:[
		{
			path:'/',
			component:index,
			redirect:'/layout',
			children:[
			   {
			   	path:'/layout',
			   	component:layout
			   },
			   {
			   	path:'/UsePage',
			   	component:UsePage,
			   	redirect:'/UsePage/onePage',
			   	children:[
			   		{
			   			path:'/UsePage/onePage',
			   			component:onePage
			   		},
			   		{
			   			path:'/UsePage/twoPage',
			   			component:twoPage
			   		},
			   		{
			   			path:'/UsePage/threePage',
			   			component:threePage
			   		},
			   		{
			   			path:'/UsePage/fourPage',
			   			component:fourPage
			   		},
			   		{
			   			path:'/UsePage/fivePage',
			   			component:fivePage
			   		}
			   	]
			   },
			   {
			   	path:'/AboutUs',
			   	component:AboutUs
			   },
			   {
			   	path:'/weChatTicket',
			   	component:weChatTicket
			   },
			   {
			   	path:'/notice',
			   	component:notice,
			   	children:[
			   		{
			   			path:':newList'
			   		}
			   	]
			   }
			]
		}
	]
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<index/>',
  components: {index}
})
